﻿using System.Net.Sockets;

namespace UDFSocket
{
    public partial class SocketPlus : Socket
    {
        public SocketPlus(SocketInformation socketInformation) : base(socketInformation) { }

        public SocketPlus(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) : base(addressFamily, socketType, protocolType) { }

        protected override void Dispose(bool disposing)
        {
            ThreadTaskAbort();


            base.Dispose(disposing);
        }

        ~SocketPlus()
        {
            Dispose(false);
        }
    }
}
